/* 后台管理系统主样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --warning: #f72585;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #dee2e6;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    padding: 20px;
}

/* 统计卡片样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
}

.stat-icon.users {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.stat-icon.orders {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.stat-icon.revenue {
    background: rgba(247, 37, 133, 0.1);
    color: var(--warning);
}

.stat-icon.activity {
    background: rgba(33, 37, 41, 0.1);
    color: var(--dark);
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray);
    font-size: 14px;
}

/* 图表区域样式 */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 18px;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.chart-actions button {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-actions button:hover {
    background: var(--light);
}

.chart-container {
    height: 300px;
    position: relative;
}

/* 大型统计图表样式 */
.large-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.large-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.large-chart-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.large-chart-actions {
    display: flex;
    gap: 10px;
}

.large-chart-actions button {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.large-chart-actions button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.large-chart-actions button:hover {
    background: var(--light);
}

.large-chart {
    height: 400px;
    position: relative;
}

/* 消息和任务区域 - 左右两个独立模块 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-header h3 {
    font-size: 18px;
}

.content-list {
    max-height: 300px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s;
}

.list-item:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.list-item:last-child {
    border-bottom: none;
}

.item-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.item-title {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.item-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

.item-time {
    color: var(--gray);
    font-size: 13px;
}

.item-text {
    color: var(--gray);
    font-size: 14px;
}

.item-unread {
    background: rgba(67, 97, 238, 0.1);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

/* 未读消息红点指示器 */
.unread-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--warning);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    align-self: center;
    animation: pulse 2s infinite;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.task-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.task-content {
    flex: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.task-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.task-time {
    color: var(--gray);
    font-size: 13px;
    min-width: 80px;
    text-align: right;
}

.task-desc {
    color: var(--gray);
    font-size: 13px;
}

.task-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.priority-primary {
    background: rgba(247, 37, 133, 0.1);
    color: var(--warning);
}

.priority-success {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.priority-info {
    background: rgba(108, 117, 125, 0.1);
    color: var(--gray);
}

.priority-warning {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.priority-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 统计表格样式 */
.stats-table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.stats-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-table-header h3 {
    font-size: 18px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid var(--border);
    color: var(--gray);
    font-weight: 600;
}

.stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-normal {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 4px;
}

.progress-normal {
    background-color: #28a745;
}

.progress-warning {
    background-color: #ffc107;
}

.progress-danger {
    background-color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .large-chart {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .large-chart {
        height: 300px;
    }
    
    .stats-table {
        display: block;
        overflow-x: auto;
    }
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--secondary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(67, 97, 238, 0.1);
}

/* 无数据提示样式 */
.no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    flex-direction: column;
}

.no-data-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.no-data-text {
    color: #999;
    font-size: 16px;
}

/* 状态颜色样式 */
.status-new { color: #1890ff; font-weight: bold; } /* 新建 - 蓝色 */
.status-in-progress { color: #52c41a; font-weight: bold; } /* 进行中 - 绿色 */
.status-pending-test { color: #faad14; font-weight: bold; } /* 待测试 - 黄色 */
.status-resolved { color: #722ed1; font-weight: bold; } /* 已解决 - 紫色 */
.status-feedback { color: #fa541c; font-weight: bold; } /* 反馈 - 橙色 */
.status-closed { color: #8c8c8c; font-weight: bold; } /* 已关闭 - 灰色 */
.status-reopened { color: #f5222d; font-weight: bold; } /* 重新打开 - 红色 */
		
.tooltip span.tip{display: none;text-align:left;}
.tooltip span.tip a { color: #169 !important; }
div.issue {
    background: #ffffdd;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid #d0d7de;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.block-calendar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
	margin-bottom: 30px;
}

ul.cal {
    list-style: none;
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: 2rem repeat(7, 1fr);
    margin: 0;
    border: 1px solid #d0d7de;
    border-spacing: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cal .calhead {
    background-color:#eee;
    text-align: center;
    font-weight: bold;
    padding: 4px;
}

.cal .week-number {
    background-color:#eee;
    border:none;
    font-size: 1em;
    padding: 4px;
    text-align: center;
}

.cal .week-number .label-week {
    display: none;
}

.cal .calbody {
    border: 1px solid #d0d7de;
    vertical-align: top;
    font-size: 0.9em;
    border-bottom: 0;
    border-right: 0;
    line-height: 1.2;
    min-height: calc(1.2em * 6);
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cal .calbody p.day-num {font-size: 1.1em; text-align:right;}
.cal .calbody .abbr-day {display:none}
.cal .calbody.this-month {background-color:#fff;}
.cal .calbody.other-month {background-color:#f6f7f8;}
.cal .calbody.other-month p.day-num {color: #bbb;}
.cal .calbody.today {background:#ffd;}
.cal .calbody.today p.day-num {font-weight: bold;}

.cal .calbody .icon {padding-top: 2px; padding-bottom: 3px;}
.cal .calbody.nwday:not(.other-month) {background-color:#f1f1f1;}

p.cal.legend span {display:flex;}
.controller-calendars p.buttons {margin-top: unset;}